import json

filename = 'usernumber.json'
number = input('输入你喜欢的数字：')

with open(filename,'w') as file_obj:
	json.dump(number,file_obj)	#json写入
	
with open(filename) as file_obj:
	num = json.load(file_obj)	#json读取
	print('你喜欢：'+num)
	
